is there a way to add picture quality to this portion of the script
$menu = $HTTP_SESSION_VARS['_amember_user']['name_l'];
$menuitem = explode("&",$menu);
$new_w = $menuitem[0];
$new_h= $menuitem[1];
header("Content-type: image/jpeg");
$dst_img=ImageCreate($new_w,$new_h);
$src_img=ImageCreateFromJPEG("$d");
ImageCopyResized($dst_img,$src_img,0,0,0,0,$new_w,$new_h,ImageSX($src_img),ImageSY($src_img));
ImageJPEG($dst_img,"$d");