added upscaling of images