Create grayscale masks in Blender like Gimp
All you have to do is to multiply the image by a variable using the Converter --> Math node (This will automatically convert to BW).

Then you use the Converter --> Set alpha node while using the same image as the mask.