can i use img instead if canvas todataurl code example Example: javascript todataurl var image = new Image(); image.src = canvas.toDataURL();