I did the same thing, though with `img.src = https://my_image/whatever.jpg; img.setAttribute("crossorigin", "anonymous");`