<figure>{% if {{include.url}} %}<a class="no_icon" target="_blank" href="{{include.url}}">{% endif %}<img class="docimage{% unless include.width == 'narrow' %} wide{% endunless %}" src="/images/{{include.file}}" alt="{{include.alt}}" {% if {{include.max-width}} %}style="max-width: {{include.max-width}}px"{% endif %} />{% if {{include.url}} %}</a>{% endif %}<figcaption>{% if {{include.caption}} %}{{include.caption}} {% endif %}(Credit: <a href="{{include.source}}" title="View image source">{{include.credit}}</a>)</figcaption></figure>

<figure{% unless include.width == 'narrow' %} class="wide"{% endunless %}>{% if {{include.url}} %}<a class="no_icon" target="_blank" href="{{include.url}}">{% endif %}<img class="docimage" src="/images/{{include.file}}" alt="{{include.alt}}" {% if {{include.max-width}} %}style="max-width: {{include.max-width}}px"{% endif %} />{% if {{include.url}} %}</a>{% endif %}<figcaption>{% if {{include.caption}} %}{{include.caption}} {% endif %}(Credit: <a href="{{include.source}}" title="View image source">{{include.credit}}</a>)</figcaption></figure>

Move class to the right place
Move class to the right place
