force closing modal of image on click, to circumvent mobile usability issue