canvas.toDataURL(imageType)

Image.decode