{% for vm in vms %}
{% if vm.image is defined %}
{% if 'rhel' in vm.image.lower()%}
{% set logo = 'Redhat.png' %}
{% elif 'cfme' in vm.image.lower() %}
{% set logo = 'Centos.png' %}
{% elif 'centos' in vm.image.lower() %}
{% set logo = 'Centos.png' %}
{% elif 'fedora' in vm.image.lower() %}
{% set logo = 'Fedora.png' %}
{% elif vm.image.startswith('debian') %}
{% set logo = 'Debian.png' %}
{% elif vm.image.startswith('utopic') %}
{% set logo = 'Ubuntu.png' %}
{% elif vm.image.startswith('vivid') %}
{% set logo = 'Ubuntu.png' %}
{% elif vm.image.startswith('wily') %}
{% set logo = 'Ubuntu.png' %}
{% elif vm.image.startswith('xenial') %}
{% set logo = 'Ubuntu.png' %}
{% elif vm.image.startswith('yakkety') %}
{% set logo = 'Ubuntu.png' %}
{% elif vm.image.startswith('zesty') %}
{% set logo = 'Ubuntu.png' %}
{% elif vm.image.startswith('artful') %}
{% set logo = 'Ubuntu.png' %}
{% elif vm.image.startswith('bionic') %}
{% set logo = 'Ubuntu.png' %}
{% elif vm.image.startswith('cosmic') %}
{% set logo = 'Ubuntu.png' %}
{% else %}
{% set logo = 'Tux.png' %}
{% endif %}
{% else %}
{% set logo = 'Tux.png' %}
{% endif %}