added support for numbered figures