Corrected save image
Corrected image rotation