Fixed a bug with rotation changing the image size -> rotating reduces
the quality