First commit for grid image search