Migrate TokenImageManager's interface to deal only with token IDs, and to look up the appropriate tokens where needed.