Change resource loading and storing to use ResourcePaths