It's not layers. I have no idea how to code it, but I ahve an idea... sort of.
The coder places the new image in the code and sets the left and right up and down placement of the image over the original. The only problem is that when you do that, you can see the new image over all the other pet images when you flip throught he profile pets.
Lut knows more.