C code for importing a tga file and grayscaling it, a lot of time went into reading the tga format documentation raither than actually writing code