Fixed issue when writing .dot files, no longer appends but the
script now overwrites. Prints multipile images now, one for each
state change (line in logfile).