diff --git a/content/blog/.DS_Store b/content/blog/.DS_Store
index 8b22932..903eaa8 100644
Binary files a/content/blog/.DS_Store and b/content/blog/.DS_Store differ
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html
index 41c87b2..ef90695 100644
--- a/layouts/_default/_markup/render-image.html
+++ b/layouts/_default/_markup/render-image.html
@@ -1 +1,11 @@
-
\ No newline at end of file
+{{ $dest := .Destination -}}
+{{ $url := urls.Parse .Destination -}}
+{{ if eq $url.Host "" -}}
+ {{ if hasPrefix $url.Path "/" -}}
+ {{ $base := strings.TrimSuffix "/" .Page.Site.BaseURL -}}
+ {{ $dest = printf "%s%s" $base .Destination -}}
+ {{ else -}}
+ {{ $dest = printf "%s%s" .Page.Permalink .Destination -}}
+ {{ end -}}
+{{ end -}}
+
\ No newline at end of file