Update photo model to read new api.