Fix for ImageDataUtil.copyPixels()