rotating image using mouse (dragging bottom right corner)