It seems you are loading the images in RGB format again, although probably all channels contain the same information.
I’m wondering, how you’ve managed to save the grayscale images as jpg, as I thought this format needs three channels.
However, could you check the number of channels after loading the grayscale images?