        const url = URL.createObjectURL(blob);
        document.getElementById("loading").style.backgroundImage =
          `url(${url})`;

        // File upload
        document
          .getElementById("fileUpload")
          .addEventListener("change", function (event) {
            var file = event.target.files[0];
            if (file) {
              var reader = new FileReader();
              reader.onload = function (e) {
                var data = new Uint8Array(e.target.result);
               