I managed to fix it!! I had to disable Ren'Py's OpenGL support, which is done by holding down shift while starting the game. I was then able to force the game to use a different software renderer from the available options and now the backgrounds and CGs look as they should both in-game and in the gallery. I am SO relieved. Hopefully I can finally enjoy the game now, lol.