moved vision processing inline.
ready for testing.