Added scanline-based rendering (buggy)