Add __getstate__ method to ImageCacheFile