al ? 'optimized' : 'original';
    }

    function showOppositeImage() {
      if (!originalSrc || !optimizedSrc) return;
      
      const showOriginal = viewToggle.classList.contains('active');
      // Show opposite of current toggle state
      output.src = showOriginal ? optimizedSrc : originalSrc;
    }

    function showOriginal() {
      if (originalSrc) {
        output.src = originalSrc;
      }
    }

    function showOptimized() {
      if (optimizedSrc) {
        output.src = optimizedSrc;
   