Added indexing to image searching.