modify a bug in extract_img_from_annotation.py