The image has an onClick function, it gets the mouse coordinates relative to the page and then subtracts image origin.