Adding images and updating index.