improved, working code of identifying foreign objects. Creates image of foreign objects in work envelope, but does not affect command flow as a result yet