Javascript Image To Arraybuffer Javascript Format