Fixes to line drawing