stbi_write_tga can now write 1 and 2 channel (grayscale and grayscale-alpha) images.