styled the images and their captions on the index page