You can handle this with javascript and div tag.
1) Add placeholder for main image
2) Style the div tag using all the controls like "close,zoom etc".
3) Add
tag inside the div and set path at the time of selection
or add with dynamic text.
3) Add javascript event for "OnMouseDown,OnMouseDrag,OnMouseUp etc"