Updated to use the id for photos in the api instead of the filename.