integrate @edewith gist for SVG upload