Adding support for drawing polygons and color blending.