diff --git a/frontend/slideshow.html b/frontend/slideshow.html
index 8e48a01..0818eda 100755
--- a/frontend/slideshow.html
+++ b/frontend/slideshow.html
@@ -111,7 +111,7 @@ function loadPhoto(index) {
months[taken.getMonth()] + " " +
taken.getDate() + " " +
taken.getFullYear();
- document.getElementById("photo").style.backgroundImage = "url(" + url + ")";
+ document.getElementById("photo").style.backgroundImage = "url(" + encodeURI(url) + ")";
countdown = 15;
tick();
}