parsing out figure captions