Added support for reading as binary string or dataurl