add image to index file