add keyframe extraction function