updated the class with OpticalFlow