public function getRealWidth() { if (!$this->realWidth) { $this->getDimensions(); } return $this->realWidth; }