Restructured setupDragHandler() function so it will also apply mousedown/dragstart listener on image when handler already exists.
Removed unused variable.