protected function calcImageSizePercent($width, $height) { if ($this->percent > 0) { $this->newDimensions = $this->calcPercent($width, $height); } }