added renderSegment() method for dashed lines
rounded line is now being rendered