Call to undefined method PHPExcel_Worksheet_Drawing::getImageResource()

     

I'm getting this error when I try and read an excel document anyone know where this error is coming from?  use yiiframework  error:


  

"Call to undefined method PHPExcel_Worksheet_Drawing::getImageResource();"   version:phpexcel 1.8

  

  
  
 $reader = PHPExcel_IOFactory::createReader('Excel2007');    $pe = $reader->load($file);    $sheet = $pe->getSheet();    $rows = $sheet->getHighestRow();//       //$columns = $sheet->getHighestColumn();    $columns = PHPExcel_Cell::columnIndexFromString($sheet->getHighestColumn());    $test= new PHPExcel_Worksheet_MemoryDrawing;    $TmpPath="importImg/";    $currentSheet = $pe->getActiveSheet();    $AllImages= $currentSheet->getDrawingCollection();    $ArrayTmp="";       foreach($AllImages as $drawing){    $image = $drawing->getImageResource();    $filename=$drawing->getIndexedFilename();    $XY=$drawing->getCoordinates();       imagepng($image $TmpPath.$filename);       $cell = $currentSheet->getCell($XY);    $cell->setValue($filename);    }