/**
  * Create all the needed copies of the image.
  *
  * @param $imagePath
  */
 public function __construct($imagePath)
 {
     $this->path = $this->normalizeImagePath($imagePath);
     if (!FileHelper::isLocalPath($this->path)) {
         throw new \InvalidArgumentException('The specified path is not local.');
     }
     if (!file_exists($this->path)) {
         throw new \InvalidArgumentException('The specified file does not exist.');
     }
     $this->setConfigValues();
     $this->parseImagePath();
     $this->sourceSet = new SourceSet($this->path, $this->getWidth());
     $this->createCopies();
 }