Only save images if desired
Only save images if desired

Sometimes we only want the log files. Only saving the images on demand
makes the script run a bit quicker

habi/GlobalDiagnostiX,habi/GlobalDiagnostiX,habi/GlobalDiagnostiX