private function setJpgQuality($jpgQuality)
    {
        if($jpgQuality < 1 || $jpgQuality > 100) {
            throw new ImageException("Value must be between 1 and 100.", ImageException::OutOfRangeException);
        }
        $this->jpgQuality = (int)$jpgQuality;
    }