Made the Inventory object name be rendered using a TextImage.

I also removed a useless member, and prevented a potential crash.