为什么出不来图片呀

<?php
session_start();//session保存数据
$table=array(
'pic0'=>'舍利',
'pic1'=>'熊',
'pic2'=>'花',
);
$index=rand(0,2);
$value=$table['pic'.$index];
$_SESSION['authcode']=$value;
$filename=dirname(_FILE_).'\\pic'.$index.'.jpg';
$contents=file_get_contents($filename);
header('content-type:image/jpg');
echo $contents;
?>
为什么出不来图片??????????????????
我没转义 也能看到出来图片,什么情况