Returns the img html element or outputs the image to the browser.
mixed Core_Captcha::image_render( )
mixed
html string or voidprotected function image_render()
{
// Send the correct HTTP header
header("Cache-Control:no-cache,must-revalidate");
header("Pragma:no-cache");
header('Content-Type: image/' . Captcha::$image_type);
header("Connection:close");
// Pick the correct output function
$function = 'image'.Captcha::$image_type;
$function(Captcha::$image);
// Free up resources
imagedestroy(Captcha::$image);
}