How to track user Interaction on image

Tracking user interaction on an image:
Zoom in or out the image
Time or duration stay/spent on the image