Dead-simple tga image loader in C