more progress on photos api