create rasterize(), and tests for that.