Move photo retrieval into APIClient.