Resize the page to fit the image.