Added ability to rotate images using mouse.