Rotation of an image - still needs some work