Ensure the width of widgets is an integer

Particularly the image widget, since I'm derp. Returning floats breaks
other thigns subtly, like the systray widget. This fixes the image
widget, and also prevents other widgets from doing the same mistake.