Rescale images to the right size