Rendering 2D shapes