refactor plot rendering with options for rendering to fix tight_layout issue