A constructor that constructs a mask from a RawBitmap.
Note that if color mask is passed to this constructor then the Red channel is chosen as mask.
The RawBitmap passed in will not be copied. So if you update your RawBitmap after passing it in then you are also updating the mask.