Fixed a bug in TargaImage

Casting a FileStream to a MemoryStream turned out not to be a good idea.