save metrics from events and treatments with the replicate
call tempresource cleanup on exit
save metrics to a file on replicate completion
split up time and interval in metrics
test cleanup and modify logging for variables
report actual area instead of cell count
refactor the super deep for loop, and rename get_img_filenames to more generic get_base_filenames