widget: box: fix the vertical layout

The old algorithm forgot to calculate the spaces between the widgets.
image_xpm: get rid off sscanf

This would save 2K text space.