add the image in the index