Well everything I tried failed miserably. I could not for the life of me get it to work. I did a workaround using the JPEGDecoder.h library instead. I changed the files on the SD to JPEGS instead of PNGs and iterate through the files on the SD card, checking the file names and their extensions. I then add them to an array of images to display.
It seems to work file on the red ILI9341 but on the CYD the displayed images look like the contrast is turned way up and looks like it’s gradually turning into a negative. I’m still looking for a fix for that.