If you need to use a raster PNG badge, change the '.svg' to '.png' in the link
Modify the attachments path again. Sorry for breaking backward compatiblity, but avoid all useless directories seems like a good thing to do.
relevant lines covered
hits per line