modify getPhoto