Threaded image query from the webcam.