if ($this->height > $this->width) {
            $this->setOrientation(self::ORIENTATION_PORTRAIT); 
        }