masking for texture paint

can we use a grayscale mask in texture paint? I know there is a face select feature, but what I really need is image based masking.

Example setup:
http://www.pasteall.org/blend/41719

Thanks man…sorry for taking so long to reply.