Added customizable rendering on buttons
Separated width/height calculation from text