add support for figure captions