Probably the easiest thing to do would be to put a placeholder jpg in your Planetjpeg folder named 'ted.jpg'. Make sure it's 250x250 pixels.
That won't fix the underlying problem, which sounds like some kind of database corruption, but it should allow you to keep playing, at least until other problems crop up.