Adding dataURLMimeType and writeDataURL
Fix wiki to use the writeDataURL function