public function rotate($degrees, $background = 0xffffff, $alpha = 1.0)
{
$backgroundColor = sprintf('rgba(%u,%u,%u,%f)', $background >> 16 & 0xff, $background >> 8 & 0xff, $background & 0xff, $alpha);
$this->_image->rotateImage(new \ImagickPixel($backgroundColor), $degrees);
$this->_image->setImagePage($this->_width, $this->_height, 0, 0);
$this->_width = $this->_image->getImageWidth();
$this->_height = $this->_image->getImageHeight();
return $this;
}