I would use plain JavaScript to get the information from the web page.
function getX(/* string */ elementId) {
return document.getElementById(elementId).offsetLeft;
}
function getY(/* string */ elementId) {
return document.getElementById(elementId).offsetTop;
}
If you need the position relative to the viewport:
function getX(/* string */ elementId) {
return document.getElementById(elementId).offsetLeft - document.body.scrollLeft;
}
function getY(/* string */ elementId) {
return document.getElementById(elementId).offsetTop - document.body.scrollTop;
}
If you need to perform the onClick action on the image without using the mouse:
function clickIt(/* string */ elementId) {
document.getElementById(elementId).onclick();
}
To invoke JavaScript using C#, you'll need to create a WebBrowser control, load the web page, then invoke the script. You can find how to do that here.
MSDN documentation for HtmlDocument.InvokeScript