Use core data to save images once they have been loaded.