Saves average pixel values to a csv.