Avoiding calculating levels with image magick, can be done with colourbalance effect instead.
Error message if script cannot be stored from template.
Cleaning comparison output file, after its been read.