get photo id when click on the photo