modified retrievePhotoDetailServlet