Improved rasterizer code