added textcache

I added my textcache class.

Somehow the thumbnail class slipped in this commit, without me having
changed something… strange