public static function load(string $fileName, ImageDriver $driver = null): self
    {
        $self = new self($fileName, $driver);
        $self->handle = $self->driver->load($fileName);
        return $self;
    }
public static function load(string $fileName, ImageDriver $driver = null): self
    {
        $self = new self($fileName, $driver);
        $self->handle = $self->driver->load($fileName);
        return $self;
    }
public static function load ( string $ fileName , ImageDriver $ driver = null ) : self { $ self = new self ( $ fileName , $ driver ) ; $ self -> handle = $ self -> driver -> load ( $ fileName ) ; return $ self ; }
loads image from file

@param   string                     $fileName  file name of image to load
@param   \stubbles\img\ImageDriver  $driver    optional  defaults to PngDriver
@return  \stubbles\img\Image
loads image from file