/// <summary>
        /// Load the media items pointed to by 'pathfilenames' into the 'Model'
        /// </summary>
        /// <param name="pathfilenames">a vector of strings; each string containing path/filename for an image file to be loaded</param>
        /// <returns>the unique identifiers of the images that have been loaded</returns>
        public IList <String> load(IList <String> pathfilenames)
        {
            // Loop through all path file names
            foreach (string path in pathfilenames)
            {
                if (!_images.ContainsKey(path))
                {
                    // Call ImageFactory's Create method to create an image from it's path and add it to the '_images' dictionary
                    _images.Add(path, _imageFactory.Create(path));
                }
            }

            // Return all image keys
            return(GetKeys());
        }
 public Task <Result <(Image Image, IReadOnlyCollection <Thumbnail> Thumbnails), Error> > CreateImageWithThumbnails(
     Name galleryName, Id id, uint rowVersion, Option <byte[]> meta, byte[] raw)
 {
     return(_configurationStorage
            .Get(galleryName)
            .AndThenAsync(configuration => _imageFactory.Create(id, rowVersion, meta, raw, configuration)));
 }