Added photo on item index and show view using a loop.