Added method to SGDocument to handle drawing lines