Statistical analysis
add an argument of whether save images