Adding preview images and updating index.