In that case, perhaps the GifImage class does not correctly handle the .gif image that you are using (and/or perhaps the image is slightly corrupt or badly formed).
That's small, but I don't see why that would cause a problem. If you post it to me I'll have a look and see if I can reproduce the problem (davmac@greenfoot.org).