cleanup on texture init