diff --git a/quack.sh b/quack.sh
index 4c5eb1a8e07c2efbc0db885ffcba7ffd89896e4f..a14793180345ae594b15ed7f5fa4fb3b2f3f79bc 100755
--- a/quack.sh
+++ b/quack.sh
@@ -536,10 +536,10 @@ function makePreviewPage() {
         TILE_SOURCES="      type: 'legacy-image-pyramid',\
       levels:[\
         {\
-          url: '${IMAGE}',\
+          url: '${EDEST}',\
           width:  ${IMAGE_WIDTH},\
           height: ${IMAGE_HEIGHT}\
-        },\
+        }\
       ]"$'\n'
     fi
     IHTML=`template "$IHTML" "TILE_SOURCES" "$TILE_SOURCES"`