@romain and @klaus, please review.
Webkit has issues when trying to load data-uri based images with XMLHTTPRequest. This is changed for the sake of compatibility with all browsers.