Small, general code cleanup 

Removed dead code, improved alignment, fixed warnings, and cleaned up `DumpTGA()`.
I don't see how?