diff --git a/ui/web/src/components/shared/image-lightbox.tsx b/ui/web/src/components/shared/image-lightbox.tsx
index 525c0b94..cbdbeead 100644
--- a/ui/web/src/components/shared/image-lightbox.tsx
+++ b/ui/web/src/components/shared/image-lightbox.tsx
@@ -1,6 +1,7 @@
import { useEffect, useCallback } from "react";
import { X, Download } from "lucide-react";
-import { formatSize } from "@/lib/file-helpers";
+import { formatSize, toDownloadUrl } from "@/lib/file-helpers";
+import { useMediaUrl } from "@/hooks/use-media-url";
interface ImageLightboxProps {
src: string;
@@ -24,6 +25,7 @@ export function ImageLightbox({ src, alt, fileName, size, onClose }: ImageLightb
}, [handleKeyDown]);
const displayName = fileName || alt || "image";
+ const cachedSrc = useMediaUrl(src);
return (