Group of Sprites as One Body?

I have a group of sprites. Each sprite is a limb on my character, rotated to a certain degree depending on what my character is doing.

How do I connect/anchor their endpoints to form one body? Like an elbow or a knee, for example.

Can someone post a working example please?