Change references to "photo" to "media_file" to accommodate videos.
Can now process videos as well.