public function setHeight($pValue = 0)
{
// Resize proportional?
if ($this->resizeProportional && $pValue != 0) {
$ratio = $this->width / $this->height;
$this->width = (int) round($ratio * $pValue);
}
// Set height
$this->height = $pValue;
return $this;
}