Added drawLine method.