change photo_id structure