/** * {@inheritdoc} * * NOTE: This is just to capture the flag locally */ public function keepAspectRatio($flag) { $this->_keepAspectRatio = (bool) $flag; return parent::keepAspectRatio($flag); }