toDataURL

fun toDataURL(type: String = "image/png", quality: Double? = null): String