Small optimization of image data copying