in reply to Creating an image with GD.
What, exactly, do you expect this line to do?
$title->draw( IMAGE_SIZE / 2 TITLE_Y_COORD );
Is the script you've shown incomplete?