Moved vision processing to its own thread.