Added safety checks to draw::lines calls
Added software triangle drawing.  Optimised, but unsurprisingly still very slow