a simple working version of rasterization. before adding color selector