Now allows us to rotate image
Bugfix: Rotated image correctly resized.