Refactored rasterizer and setup initial class for instanced drawing.