Resize code patch

I was having some difficulty getting this widget to size properly. I could get only the height or width of the widget to size to the diameter of the actual gauge. The other would not scale down and would leave the widget as rectangle rather than a square, using a good bit of space I didn't want to waste.

Thanks for taking the time to write this library! It was really helpful for understanding how to write custom components!