Jinja templified img check syntax, fixes #1