moved scaledImageCopy to Utilities class