changed getPhoto