Irregular structure of the envelope around the carbon-rich star TX PSC