I've split out the image scaling code into a separate class and returned this class...