The width and height of of the region to update are often zero, skip calling GPU_paint_update_image in this case.