Finished code to preprocess image and save files to disk. Example of how
to read the files back is in the onCreate() method.