Javascript Image To Arraybuffer Javascript Form Handling