adds optical flow