diff --git a/lib/template.html b/lib/template.html
index e0e9b52..ebc0697 100755
--- a/lib/template.html
+++ b/lib/template.html
@@ -102,7 +102,7 @@
{% endif %}
{% if page.image %}
- {% assign seo_page_image_default = page.image.default.path | default: page.image.default | default: page.image %}
+ {% assign seo_page_image_default = page.image.default.path | default: page.image.default | default: page.image.path | default: page.image %}
{% unless seo_page_image_default contains "://" %}
{% assign seo_page_image_default = seo_page_image_default | absolute_url %}
{% endunless %}
diff --git a/spec/jekyll_seo_tag_spec.rb b/spec/jekyll_seo_tag_spec.rb
index 52e3829..8637da4 100644
--- a/spec/jekyll_seo_tag_spec.rb
+++ b/spec/jekyll_seo_tag_spec.rb
@@ -141,7 +141,7 @@ describe Jekyll::SeoTag do
context "with page.image as an object" do
context "when given a path" do
- let(:page) { make_page("image" => { "default" => "/img/foo.png" }) }
+ let(:page) { make_page("image" => { "path" => "/img/foo.png" }) }
it "outputs the image" do
expected = %r!!