image viewer: fixed pan and zoom
image viewer: added function to get the mouse coordinates in image frame