Better line-drawing approach