Improved handling of lineWidth on shapes.