Fixed seg fault when drawing lines
Merge pull request #8 from EmilWestergren/master

Fixed seg fault when drawing lines