do i need to add the canvas to the dom to export code example Example: javascript todataurl var image = new Image(); image.src = canvas.toDataURL();