made Resave class more generic so that it can be called from other
classes with different, maybe already instantiated and more specific
SpimData objects