getImage(callback) {
    let image = new Image();

    image.onload = () => {
      this.context.imageSmoothingEnabled = false;
      this.context.drawImage(image, 0, 0, this.width, this.height);

      if (callback) {
        callback(image);
      }
    };

    image.onerror = function (err) {
      console.log(err);
    };

    image.src = this.canvas.toDataURL();
  }
Get the canvas as an HTML image.

@param {CallableFunction} callback