Bunch of WIP on saving/loading images from SampledFunctions.