add image urls and preview urls to index and show pages