diff --git a/lib/jekyll_picture_tag/images/generated_image.rb b/lib/jekyll_picture_tag/images/generated_image.rb
index <HASH>..<HASH> 100644
--- a/lib/jekyll_picture_tag/images/generated_image.rb
+++ b/lib/jekyll_picture_tag/images/generated_image.rb
@@ -76,6 +76,8 @@ module PictureTag
     end
 
     def generate_image
+      return if @source.missing
+
       ImageFile.new(@source, self)
     end
Check for missing source before generating image