});

    dropzone.addEventListener('drop', (e) => {
      e.preventDefault();
      dropzone.classList.remove('dragover');

      const file = e.dataTransfer.files[0];
      if (file && file.type.startsWith('image/')) {
        const reader = new FileReader();
        reader.onload = (e) => {
          originalSrc = e.target.result;
          updateImage();
        };
        reader.readAsDataURL(file);
      } else {
        alert('Please drop an image file.');
      }
    });

    // Quality slider handle