There are many situations when we need to darken an image or place an overlay which acts like a mask on top of the image or slider image. This should also have transparency setting for the mask.