Future reference: I have a library that deals with dataurls called <a href="https://github.com/brianloveswords/dataurl">`dataurl`</a>