Add (untested) code for running image animations using HTML5 Canvas