utput.addEventListener('touchend', (e) => {
      e.preventDefault();
      if (isPressed) {
        isPressed = false;
        updateDisplayedImage();
      }
    });

    output.addEventListener('touchcancel', (e) => {
      e.preventDefault();
      if (isPressed) {
        isPressed = false;
        updateDisplayedImage();
      }
    });

    function updateImage() {
      if (!originalSrc) return;
      
      const img = new Image();
      img.onload = () => {
        const canvas = document.createEl