Added extra clipping code -- fixing bugs in bresenham and flood fill