hmm i always found that using the code below worked alot better for transparent backgrounds than the whole alpha blending thing. (use the below code after you create your image)
code:
$tran = imagecolorallocate($image, 233,231,222);
$tran = imagecolortransparent($image,$tran);
imagefill($image,0,0,$tran);