Add transparency support for masks