Moved data formatting and loading into the functions load_data and format_data.  Data are saved as the raw images with formatting done everytime in a separate call.