There is an issue with TGA images that have not attributes set, but the color depth is 32. The TGA module returns matte=false in this case where it should return true.
I suggest changing the following line in tga.c:
image->matte=(alpha_bits > 0);
image->matte=(alpha_bits > 0) || (tga_info.bits_per_pixel == 32);