changes for support dataURLs for mobile browsers