helper getPhoto