turn this.error_;
    },

    get imageData() {
      return this.imageData_;
    },

    isPending() {
      return this.error_ === undefined && this.imageData_ === undefined;
    },

    asCanvas() {
      if (!this.imageData_) return;

      const canvas = document.createElement('canvas');
      const ctx = canvas.getContext('2d');

      canvas.width = this.imageData_.width;
      canvas.height = this.imageData_.height;
      ctx.putImageData(this.imageData_, 0, 0);
      return canvas;
    }
  };

  re