Rendering graphics in 2D