avoid keeping reference to huge textures