Use an SVG badge.

SVG looks better on retina screens, and when zooming.

Disclosure: I am a maintainer of the Shields.io codebase.