Very simple function that do convert all HTML Canvas elements to IMG in place, without any complications !
canvas-to-img depends on jQuery.
In your HTML's HEAD, add:
<script type="text/javascript" src="canvas-to-img.js"></script>
Then, simple fire the main function:
canvas_to_img();
Any contributions are welcomed !