Implement figure rendering.