Update calculation of the badge size.

Add properties for the additional customization of the badge size.
Merge pull request #1 from ruslanskorb/master

Update calculation of the badge size.