A lightweight 2d graphics engine