Resize the image.