The mask can be generated from a key color, normaly blue, which corresponds to the transparent areas of the figure.
The resulting image is produced overlaying the figure over the back.