Gives a mask and cover to an input image