// метод сохраняет изображение в формате BMP
        public void SaveImage(Size resolution, string fileName)
        {
            var genSettings = generationSettings.Clone() as GenerationSettings;

            genSettings.Resolution = resolution;

            var creator = new FractalCreator(fractalData, genSettings, colorSettings);

            creator.Create().Save(fileName);
        }
        // асинхронный метод SaveImage()
        public Task SaveImageAsync(Size resolution, string fileName)
        {
            return(Task.Run(() =>
            {
                var genSettings = generationSettings.Clone() as GenerationSettings;

                genSettings.Resolution = resolution;

                var creator = new FractalCreator(fractalData, genSettings, colorSettings);

                creator.Create().Save(fileName);
            }));
        }