a simple 2d renderer