Remove unnecessary spaces
Write svg to a file
Simplify randomization
Write svg file to same path as script
Ignore generated svg file