if you plan on converting many more svg's, I'd recommend looking into grunticon or https://github.com/davemo/grunt-datauri-variables No sense in implementing for right now but worth considering in the future