fixed issue with optical flow by determining features to track from entire grayscale image.