Added a RenderContext and implemented a simple version of the scanline algorithm.