how did you mask so effectively? its blowing my mind, was the background of the foregrounded character a solid color?
No, in that one the background is static so it can just be masked out that way