Faster indexing for image.