Using a PNG texture of only black and fulbright red (ff0000), I get an output that is incorrect from the original red. Using the original palette does not help. This may have to do with either how color is detected in the program, or that I'm not using uncompressed PNGs.