finally got modal working for every image on the page