{% load static %}
{% load i18n %}
{% load thumbnail %}
{% ifequal item.content_type.model "fragment" %}
  {% with fragment=item.content_object %}
    <div class="image-and-fragment square-fragment-113">
        {% with image=fragment.image.info.image_file %}
        {% include "partial/fragment_only.html" %}
        {% endwith %}
    </div>
    {% comment %}
	    {% with image=item.content_object.image.info.image_file %}
		 {% if image %}
		  {% thumbnail image "113x113" format="PNG" crop="center" as im %}
		   <img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}"/>
	      {% empty %}
	       <img src="{% static 'egonomy/img/empty.gif' %}" width="113" height="113" class="placeholder" />
	      {% endthumbnail %}
	     {% else %}
	       <img src="{% static 'egonomy/img/empty.gif' %}" width=113" height="113" class="placeholder" />
	     {% endif %}
		{% endwith %}
    {% endcomment %}
  {% endwith %}
{% else %}
 {% with image=item.content_object.info.image_file %}
  {% if image %}
   {% thumbnail image "113x113" format="PNG" crop="center" as im %}
    <img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}"/>
   {% empty %}
    <img src="{% static 'egonomy/img/empty.gif' %}" width="113" height="113" class="placeholder" />
   {% endthumbnail %}
  {% else %}
    <img src="{% static 'egonomy/img/empty.gif' %}" width=113" height="113" class="placeholder" />
  {% endif %}
 {% endwith %}
{% endifequal %}