Added a new version of the keyframe generator that stops key frames from being generated that are too close to the first and last frames of the clip (which are in themselves keyframes)