Modified query and began adding code for modal display of selected photo.