Do not shadow global function message(), and use the same name everywhere
Do not output any version number in the test
Use 'outdir' instead of 'indir' for generated images which are encoded into data-uri