{% set image = resize_image(path=path, width=width, height=height, op=op) %}
{% if link is defined %}<a href="{{ link }}">{% endif %}
<img src="{{ image.url }}"
  {% if title is defined %}title="{{ title }}"{% endif %}
  {% if alt is defined %}alt="{{ alt }}"{% endif %}
  {% if class is defined %}class="{{ class }}"{% endif %}
  {% if style is defined %}style="{{ style }}"{% endif %}
  />
{% if link is defined %}</a>{% endif %}
