If you are creating masks (black/white or gray scale images), a simple way to pack masks is to take the mask and copy/paste it into one of the channels of a new image (RGBA). Once taken into an engine you can use whichever channel you need to drive a mask for the desired effect. This is an excellent method to have many masks available while keeping the performance impact low in a real time environment. To do this:
*Note: You can get some issues with 8 bits/channel depending on your render engine.