changed getPhoto() to put photo object in json map rather than a list