Made neccessary changes to TargaImage lib

Lib can now load tgas from memory.