public async Task CreateFromB64Async(string sourceBase64, string url, int squareSize, ImageFormat toFormat)
 {
     using (var map = await ImageTypes.ToMap(sourceBase64))
     {
         var img = await ImageResizer.ToSquare(map, squareSize);
         await SaveToCdnAsync(img, url, toFormat);
     }
 }
        public async Task CreateFromB64Async(string sourceBase64, IImageUrls urls, ImageFormat toFormat)
        {
            var map = await ImageTypes.ToMap(sourceBase64);

            var detail = await ImageResizer.ToSquare(map, 260);

            var icon = await ImageResizer.ToSquare(map, 107);

            await SaveToCdnAsync(new Dictionary <string, Image>
            {
                { urls.Source, map },
                { urls.Detail, detail },
                { urls.Icon, icon }
            }, toFormat);
        }