stbt templatematch: Run the image processing algorithm at most once

By using `detect_match` to process a single frame instead of relying on
a `wait_for_match` timeout of 1 second, we decrease the run time for the
no-match case to 60% of the original run time (on my dual-core 1.8GHz
Intel Core i7).