WIP: Add scanline algorithm for drawing polygons

Implementation of a scanline algorithm for rendering polygons in response to #928