what does x1,y1,x2,y2 means???
when you click on an image,it will have only x and y coordinates.
if you wish to select a portion of the image and get the selected portion coordinates,
have a look at this
select a portion of an image and retrieve its coordinates with jquery[
^]
if you drag your mouse and you want the starting and ending position coordinates,
have a look at the solution provided by Lion King
getting image coordinates of mouse movement[
^]