Adjusted dev sample to latest API.
Rough implementation of pixel-by-pixel search.