Adding support for multiple figure formats in InlineBackend.