Make image indexer more robust.
Change signature of _find_files_for_content.
Improve performance by adding a new index.