API improvements (drawLine)