Select page image with jquery and start writing click handler
Add handler for the mousedown and change click to mouseup
Get x and y coordinates on mouse up and mouse down thanks http://jsfiddle.net/strangeline/jxqpv/light/
Get image to stop dragging