Split data processing to allow for saving of images and raw data. Data processing now also takes a file path for saving purposes.