extract_results function

Generates all plots (in jpeg format) in a subfolder