Updating index with an image