Error on media.php file

Hi Guys

I'm hoping you can help me with an error to do with images. here's the error I'm getting;

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Empty string or invalid image in /home/lgmsites/public_html/wp-includes/media.php on line 258

Any ideas how to correct?

Larry