Extending line segment to edge of picture. - C#