public function setScaleAlgorithm($algorithm)
    {
        foreach ($this->available_image_widths as $width) {
            $this->irds[$width]->setScaleAlgorithm($algorithm);
        }
        return $this;
    }