public void Execute() { _customImage.Image = _newImage; _customImage.ImageResolution.Width = _newWidth; _customImage.ImageResolution.Height = _newHeight; _customImage.SaveChanges(); }