private void UpdateImageForRelease(ReleaseData releaseData, ImageViewModel selectedItem)
        {
            string        extension = Path.GetExtension(selectedItem.DiscogsImage.Uri);
            string        mimeType  = MimeHelper.GetMimeTypeForExtension(extension);
            DatabaseImage image     = new DatabaseImage()
            {
                Description = "Auto import from Discogs",
                Extension   = extension,
                IsMain      = true,
                MimeType    = mimeType,
                Type        = ImageType.FrontCover
            };

            releaseData.Release.Images.Add(image);
            releaseData.Release.DateModified = DateTime.Now;
            this.CollectionManager.ImageHandler.StoreImage(image, selectedItem.Data);
            ThumbnailGenerator.UpdateReleaseThumbnail(releaseData.Release, this.CollectionManager.ImageHandler);
            this.CollectionManager.Save(releaseData.Release);

            this.CollectionManager.Operations.WriteTags(releaseData.Release);
        }
        private void UpdateImageForRelease(ReleaseData releaseData, ImageViewModel selectedItem)
        {
            string extension = Path.GetExtension(selectedItem.DiscogsImage.Uri);
            string mimeType = MimeHelper.GetMimeTypeForExtension(extension);
            DatabaseImage image = new DatabaseImage()
            {
                Description = "Auto import from Discogs",
                Extension = extension,
                IsMain = true,
                MimeType = mimeType,
                Type = ImageType.FrontCover
            };

            releaseData.Release.Images.Add(image);
            releaseData.Release.DateModified = DateTime.Now;
            this.CollectionManager.ImageHandler.StoreImage(image, selectedItem.Data);
            ThumbnailGenerator.UpdateReleaseThumbnail(releaseData.Release, this.CollectionManager.ImageHandler);
            this.CollectionManager.Save(releaseData.Release);

            this.CollectionManager.Operations.WriteTags(releaseData.Release);
        }