Rotation optimized by resizing the image.