title: String to image only produces a black background
body: <p>I'm really having a problem finding out how to fix this. I cannot seem to change the background from black. How is it possible?</p>
  
  <pre><code>$string = "foo";
  $font  = 4;
  $width  = ImageFontWidth($font) * strlen($string);
  $height = ImageFontHeight($font);
  $im = @imagecreatetruecolor ($width,$height);
  $bg = imagecolorallocate($im, 255, 255, 255);
  $textcolor = imagecolorallocate($im, 0, 0, 0);
  imagestring($im, 5, 0, 0, $string, $textcolor);
  imagegif($im, 'somefile.gif', 8);
  imagedestroy($im);
  </code></pre>