Refinements and additions

Add TGA read and write functions.
Add a matrix inverse function.
Add a vec2 type.
Add constructors to cast to longer vectors.