further improved drawLine() functionality