Fixed some bugs in the Imagepack asset that led to images being stuck after loading a savegame.