fix chart outlines, clean outunused code, flip bgr for compressed textures on windows