Crop and rotate the image