currentFile as mutable to keep svgParser const