Added an option to allow for a maximum button width to be specified. Font for the title will be reduced so that the overall button fits within the given width.