return numeric id of photo on GET request