private function _save ($path, $file, $format)
		{
			$image = ( new Imagine() )->open($file);
			$class = $this->config;
			$params = $class::get($format);
			$newSize = $this->_size($format);
			if ($class::$fit == ImageSizeFit::WIDTH)
				$this->resizeToWidth($image, $newSize->getWidth());
			elseif ($class::$fit == ImageSizeFit::HEIGHT)
				$this->resizeToHeight($image, $newSize->getHeight());
			else
				$this->_resize($image, $newSize);
			FileHelper::createDirectory(dirname($path));
			$image->save($path, [ 'jpeg_quality' => $params[ 'quality' ] ]);
		}