Yes bmp sucks but I feel so close. This code works perfectly with bmp only one flaw when I try to free the pixels I get heap corruption. !!!
The only reason I use this format because I dont want to overload my head with compression and decompression, as I understand and correct me if am wrong everything else including targa uses compression.
Compression is optional in TGA files. I've never used it.
Ok I did some more research and now I am convinced. I will definitely look into rewriting my class to Tga at a later stage then.