The RoI might not always be the bounds of the output image in
downscaleMipMap