Improved line drawing. Previously the lines were drawn in segments,
creating drawing artifacts where they overlapped. With this change,
lines are drawn in one swoop so such artifacts don't occur. The
artifacts previously did not appear when a rendered PDF was sufficiently
enlarged, so it looks like it was an anti-aliasing issue, but anyway
it is better to draw the lines in one swoop.