How to not lose player color on Unit Icons?

If I edit unit Icon Portraits PNG the unit seems to lose player colors, even though I have kept the player color areas as transparent mask.

Like in this one:
sowar_icon image

image