Solved RotateImage

Super elegant solution