showing photo on index photos page; adding photo from gallery