<% size ||= :mini %>
<% itemprop ||= nil %>

<% if image && image.attachment? %>
  <% if itemprop %>
    <%= image_tag image.attachment(size), itemprop: itemprop %>
  <% else %>
    <%= image_tag image.attachment(size) %>
  <% end %>
<% else %>
  <span class="image-placeholder <%= size %>"></span>
<% end %>

<% size ||= :mini %>
<% itemprop ||= nil %>

<% if image_url = image.try(:url, size)  %>
  <% if image_alt = image.try(:alt) %>
    <%= image_tag image_url, alt: image_alt, itemprop: itemprop %>
  <% else %>
    <%= image_tag image_url, itemprop: itemprop %>
  <% end %>
<% else %>
  <span class="image-placeholder <%= size %>"></span>
<% end %>

Use new image interface in frontend image partial
Use new image interface in frontend image partial

Instead of calling a Paperclip specific method (`#attachment`) we
instead want to use the more generic interface that we have now defined
in `Spree::Image`. This way as long as our variant and product galleries
return images that respond to a common interface we can swap out our
image uploading libraries as we wish.

The behaviour of this partial remains the same.
