is the texture embedded in the .blend file and not on the harddisk somewhere? i guess my copy function doesn't handle this case. i would have to add some check.

i don't know what else could be the reason. i would have to examine it...