got the images to display in the index page