{% load i18n %}
{% load thumbnail %}
{% if mypost.image %}
{% thumbnail mypost.image "800x800" as mainimg %}
{% thumbnail mypost.image "753x360" crop="center" as im %}
{% endthumbnail %}
{% endthumbnail %}
{% elif mypost.photo.all.0 %}
{% thumbnail mypost.photo.all.0 "800x800" as mainimg %}
{% thumbnail mypost.photo.all.0 "753x360" crop="center" as im %}
{% endthumbnail %}
{% endthumbnail %}
{% endif %}