fixed condition in selecting badge properties
added function cmToPixel
added badge height and width of the logo