worked! thank you acrylian! :-)
$last_phlog=getImageStatistic (1,"latest","photoblog",false);
printImageStatistic(1,"latest","photoblog",true,true,true,250,'',790,600,false);}
$last_ds_image=getImageStatistic(1,"latest","photoblog");
$albumName = 'photoblog';
$imageName = $last_ds_image[0]->filename;
$image = newImage(NULL, array('folder'=>$albumName,'filename'=>$imageName));
makeImageCurrent($image);
$social_url="http://www.walter.bz".html_encode(getImageLinkURL());