Rescale the images