working on the getPhoto code.