public function trim($options) {
        if (isset($options['trim'])) return $this->trimPixels($options['trim']);
        if (isset($options['trim_perc'])) return $this->trimPerc($options['trim_perc']);
        return $this;
    }