Resize image.