converted line to Rect.  need to write logic to for straight lines.