Render outline only if needed.