Some changes in TTCache and TTImageModel