Structure of thermal heads