adding images to index