API streamlines 2D graphics