I want to mask the frame or dialog according to image.