succesfully finds and displays photos on click