# 2. Convert it to RGBA so it has space for an alpha channel
mask_rgba = mask.convert("RGBA")