How to change a mask into an overlay?