Moved vision utility functions back in to vision module.