not saving texture images on disc before loading in panda?

It means that the data PIL is giving is not in an unsigned byte RGBA format.

oops, you said that before.

If the string length is 4800, and the size is 40x40, that means there are only three components, and you have to specify RGB instead.

I know, I mean you said that before and I completely forgot it. It works now.