<?php  
defined('C5_EXECUTE') or die("Access Denied.");

$image = $controller->getContentAndGenerate();

if(strpos("<a href=", $image) !== -1){
	$image = str_replace('<a href=', '<a target="_blank" href=', $image);
}

echo($image);
?>