protected function _renderBinary($format, $quality)
{
if (!$this->_image) {
throw new Exception('Image resource not defined');
}
ob_start();
$mimeType = $this->_renderImageByFormat($format, null, $quality);
$imageData = ob_get_contents();
ob_end_clean();
return array($mimeType, $imageData);
}