You should avoid creating new images for each movement, that's a quick way to flood your document with tons of elements which could cause problems. Instead, try using a
to render your drawable area. I've put together a small example JSFiddle - Code Playground
] for how you might accomplish it. Granted it needs some tweaking, and I think the canvas being the top-most element might affect access to links etc.