add image to index