Use Svg Html. SVGs can be embedded into the HTML which means they can be cached edited directly using CSS and indexed for greater accessibility. SVGs can be scaled indefinitely meaning that they will always render to pixel-perfection on.
Support of SVG is still not complete but rapidly improving.
And the second method is you can use SVG tag for it. Inside the image tag. Make sure your SVG code snippet begins and ends with the tags dont include anything outside those. This differs from how CSS style attributes override.