Using TypeScript, but I don\'t think that matters.
StackOverflow new tag needed: localstorage
If you copy an img tag to a canvas through .drawImage, it works fine.