Use weak map for icon lookup.