if (download_attachment($_GET['timeline_item_id'], $attachment) != null){
//header('Content-type: '. $attachment->getContentType());
$image = download_attachment($_GET['timeline_item_id'], $attachment);
echo "<pre>";
print_r($image);
echo "</pre>";
}