more spaghetti. Turning all url based svg into inline svg. Needs complete rewrite.