Improve SVG icon handling
Second try for !2888 (merged).
Same changes for SVGs, but this one does not remove a variable we need (root
in frontend.rb). The previous MR removed this variable, causing build errors (!2895 (merged)).
Edited by Sarah German