integrate photo updates with API, closes #3