how to render canvas content to another dom like image or another canvas
See Render Scenes To .png Files | Babylon.js Documentation