debugging the photo api