protected function _destroyImage() { if (Helper::isGdRes($this->_image)) { imagedestroy($this->_image); $this->_image = null; } }