getPhoto now calls PhoneGap API