diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html
index 1502c0e..dc57481 100644
--- a/layouts/_default/_markup/render-image.html
+++ b/layouts/_default/_markup/render-image.html
@@ -1,18 +1,22 @@
{{- $image := .Page.Resources.GetMatch (printf "%s" (.Destination | safeURL)) -}}
-{{- $small := $image.Resize "480x" -}}
-{{- $big := $image.Resize "1024x" -}}
-{{- $alt := .PlainText | safeHTML -}}
-{{- $caption := "" -}}
-{{- with $alt -}}
-{{- $caption = . | safeHTML -}}
-{{- end -}}
-
\ No newline at end of file
+{{- if $image -}}
+ {{- $small := $image.Resize "480x" -}}
+ {{- $big := $image.Resize "1024x" -}}
+ {{- $alt := .PlainText | safeHTML -}}
+ {{- $caption := "" -}}
+ {{- with $alt -}}
+ {{- $caption = . | safeHTML -}}
+ {{- end -}}
+
+{{- else -}}
+
+{{- end -}}
\ No newline at end of file