added figure caption extraction script