add dataURLtoBlob util method
fix pasting bug in firefox