Changed TGA loader to use streams