Added dynamic photo_id setting