imageToBase64(img, width = null, height = null) {
    return this.imageToCanvas(img, width, height).toDataURL(this.IMG_CONVERT_TYPE, this.IMG_QUALITY);
  }
@param {Image|HTMLImageElement} img
@param {Number?} width
@param {Number?} height
@returns {string}