you must return a valid image, use file_get_contents or readfile for get the conent of image then output to browser
header("Content-Type:image/png");
$image_id = $_GET['image_id'];
if(is_file($file = "image".$image_id.".png") || is_file($file = "no_image.png"))
readfile($file);