That would be something wrong with your coding... Make sure your filenames match up and you put .png in the code (if that's what your filetypes are).
If you keep having trouble, send me a PM with the coding involved and I'll see if I can sort it out for you.