Code cleanup.  Replaced all Write commands with CreateTexture commands.
Eliminated large number of redundant COM_s.