Replaced sinon as the faking library.
Fixed a bug where data-urls would be destroyed.