public function __construct($width = null, $maximumWidth = null, $height = null, $maximumHeight = null, $allowCropping = false, $allowUpScaling = false, $async = false)
{
$this->width = $width ? (int) $width : null;
$this->maximumWidth = $maximumWidth ? (int) $maximumWidth : null;
$this->height = $height ? (int) $height : null;
$this->maximumHeight = $maximumHeight ? (int) $maximumHeight : null;
$this->allowCropping = $allowCropping ? (bool) $allowCropping : false;
$this->allowUpScaling = $allowUpScaling ? (bool) $allowUpScaling : false;
$this->async = $async ? (bool) $async : false;
}