public function getClass($classname)
    {
        if ((string) $classname == '' || !array_key_exists($classname, $this->classes)) {
            throw new ImageClassNotRegisteredException($classname);
        }
        return $this->classes[$classname];
    }