Modify lquid plugin to reuse figure as inline code