Render maxSize image tiles for vector repaints
Paint the image in tiled chunks of 256x256 Qrects, this makes it possible to render vector shapes on images
bigger than QImage limits
BUG:408936
(cherry picked from commit 909348366cad0ee3d4facc82b7ffb0da147437ea)