Try a simpler algorithm for culling matches
Separate pixel location and retrieval logic