2.4 inch tft lcd shield shows image in inverse colors.

Hi.
I have successfully managed to use almost all the functions of this display using the library from this thread: the thread

I can display images I put on the sd card but the image colors are strange. It is like it is applying some inverse color filter.

I am not sure what I can do to fix it.

Here is a picture showing the problem how it looks on my screen:

The colors are supposed to be red, green, and blue not yellow, purple, and light blue.

Here is the original file as it is on the sd card:

If someone figures out a solution that would be great.
In the meantime I just inverted the colors on all the images I use. Boom, problem solved. Not very elegant and pretty tedious but works.