A simple grid image search for codepath assignment