Moved clipping from line drawing into pixel drawing so it looks better.