Add support for caption position in fig and table