Move image scaling code to ImageUtils
Merge pull request #3229 from marco-dev/imageOperationsToImageUtils

Move image scaling code to ImageUtils