adding temporal smooth to optical flow