Refactored photo into its own object. Separated out photo methods from API.