Add "locate" indexing to imaging script