Imaging completed with errors
This problem seems to be:
{% for errormsg in error %}
{{ errormsg }}
{% endfor %}