code: public function resize($width = null, $height = null, $master = null)
      {
          switch ($master) {
              case 'fill':
                  $master = Image::TENSILE;
                  break;
              case 'inside':
                  $master = Image::AUTO;
                  break;
              case 'outside':
                  $master = Image::INVERSE;
                  break;
              case 'precise':
                  $master = Image::PRECISE;
                  break;
          }
          return parent::resize($width, $height, $master);
      }
docs: {@inheritdoc}