Added check if button width is integer

FIXED #32