Fixes #1

Used Base64 instead of encodeUriComponent when appending SVG into img src.