public function getHeight() { if (!$this->height) { $this->getDimensions(); } return $this->height; }