Added data attribute in html list and a new event to determine which image is clicked