Javascript + Actionscript combo to download html5 canvas images