Javascript Image To Arraybuffer Typescript Enum Get Key