fix for line widths in DrawLine function