{% if page.images or page.image %}
{% if page.image %}
{% assign non_featured_images = page.images | join: "," %}
{% assign image_collection = page.image | append: "," | append: non_featured_images | split: "," %}
{% else %}
{% assign image_collection = page.images %}
{% endif %}
{% if page.image_description %}
{% assign image_text = page.image_description %}
{% else %}
{% assign image_text = page.title %}
{% endif %}
{% if image_collection.size > 1 %}
{{ image_collection.size }} images
{% else %}
{% if image_collection.first contains site.images_path %}
{% assign image_location = image_collection.first %}
{% else %}
{% assign image_location = site.images_path | append: image_collection.first %}
{% endif %}
{% if image_location contains '-raw.' %}
{% else %}
{% assign picture_elements = image_location | split: '.' %}
{% endif %}
{% endif %}
{% endif %}