Code to run optical flow on image sequences