When an Image is masked with a layer, a mask object is created in the design hierarchy, which includes the mask and related layers for masking.
Icons should be designed using vector, and not with a PNG type.
All inner layers which are used to mask are under the mask object. These inner layers should be grouped properly and only wanted images should come inside them.
Masking should be done using a single group with its masked object.
Got a question? Ask here.