Update calculation of the badge size.

Add properties for the additional customization of the badge size.