I am hoping that someone better with GD Library than myself (and that is probably most of you) can help me figure out how to line the text up in the center of the image. I can figure out how to center the text vertically but can not center the text horizontally because the size of the word changes based on how many characters are used. I have read quite a few tutorials online on doing this but I was still unable to get it right due to my limited GD experiance. The code is below.

Thank you.

PHP Code:
("Content-type: image/png");
$user $_GET['user'];
$image imagecreatefrompng("temp.png");
$user_width imagettfbbox(90"tahoma.ttf"$user);
$x_value = (200 - ($user_width[2] + 113));
$color imagecolorallocate($im165164164);