added basic tga support
misc fixes