{% load thumbnail %}
{% load i18n %}
{% load staticfiles %}
{% with all_images=product.get_all_images %}
{# use length rather then count as the images get queried anyways #}
{% if all_images|length > 1 %}
{% for image in all_images %}
{% thumbnail image.original "600x600" upscale=False as thumb %}
{% endthumbnail %}
{% endfor %}
{% else %}
{# Only one image to show #}
{% with image=product.primary_image %}
{% thumbnail image.original "600x600" upscale=False as thumb %}
{% endthumbnail %}
{% endwith %}