Small, general code cleanup 

Removed dead code, improved alignment, fixed warnings, and cleaned up `DumpTGA()`.
I know you weren't adding this code, but actually all but the render_window(render_window) initializations are redundant..