Update extract_keyimg.c