Added photo on video index and show view using a loop