public function limitToInnerBox($width, $height, $saveAsNewFile = false)
    {
        if ($this->getWidth() < $width || $this->getHeight() < $height) {
            return $saveAsNewFile ? $this : null;
        }
        return $this->scaleToInnerBox($width, $height, $saveAsNewFile);
    }