added frame range to extract_keyframes