setImage(imgupl, src) {
    const input = this.getFileInput(imgupl);
    const img = this.getImagePreview(imgupl);
    const size = this.getOutputSize(imgupl);
    const quality = this.getQuality(imgupl);
    const format = this.getFormat(imgupl);

    BunnyImage.getImage(src)
      .then(img => {
        const canv = BunnyImage.resizeImage(img, size, size);
        return canv.toDataURL('image/' + format, quality);
      })
      .then(base64 => {
        img.src = base64;
        input._file = BunnyFile.base64ToBlob(base64);
        return base64;
      });
  }
Force, instant custom image set into file input._file property
by a base64, URL or Blob

@param imgupl
@param {String|Blob} src