changes the scale of images