public void SetImageSize(Uri url, int width, int height, ImageSizes deviceType)
 {
     ImageDefaults imageDefault = _imageConfigurationRepository.Get(url.ToString());
     if (imageDefault != null)
     {
         if (imageDefault.ImageSizes.ContainsKey(deviceType))
             imageDefault.ImageSizes[deviceType] = new Tuple<int, int>(width, height);
         else
             imageDefault.ImageSizes.Add(deviceType, new Tuple<int, int>(width, height));
     }
     else
     {
         imageDefault = new ImageDefaults { Url = url.ToString() };
         imageDefault.ImageSizes.Add(deviceType, new Tuple<int, int>(width, height));
     }
     _imageConfigurationRepository.Save(imageDefault);
     _savedImages.Remove(url.ToString(), SAVED_IMAGE_SECTION);
 }
 public void Save(ImageDefaults imageDefault)
 {
     _cacheStorage.Add(imageDefault.Url, imageDefault, CACHE_SECTION);
 }