private string LoadImageToLibrary(TreeNode createdCategory, string imageURL)
        {
            var library = new MediaLibrary
            {
                SiteId             = createdCategory.NodeSiteID,
                LibraryName        = "ProductCategoriesImages",
                LibraryFolder      = "ProductCategories",
                LibraryDescription = "Media library for storing product categories images."
            };

            return(library.DownloadImageToMedialibrary(imageURL
                                                       , $"Image{createdCategory.NodeAlias}"
                                                       , $"Product image for category {createdCategory.GetValue("ProductCategoryTitle")}"));
        }
        // ready for potential use in Product upload
        private static void GetAndSaveProductImages(SKUTreeNode product, string imageUrl, string thumbnailUrl)
        {
            var library = new MediaLibrary
            {
                SiteId             = product.NodeSiteID,
                LibraryName        = "ProductImages",
                LibraryFolder      = "Products",
                LibraryDescription = "Media library for storing product images"
            };
            var libraryImageUrl = library.DownloadImageToMedialibrary(imageUrl, $"Image{product.SKU.SKUNumber}", $"Product image for SKU {product.SKU.SKUNumber}");

            product.RemoveImage();
            product.SetImage(libraryImageUrl);
            RemoveTumbnail(product);
            AttachThumbnail(product, thumbnailUrl);
        }