Added extract_key_frame. Doesnt work yet. Made commented code in main for when it does