Small, general code cleanup 

Removed dead code, improved alignment, fixed warnings, and cleaned up `DumpTGA()`.
This enum should be defined locally at the place where it's used (although tbh I don't see much of a point in it to begin with).