added ability to upscale an image