Modifications for mask functionality in Magnifier control.

Modifications for mask functionality in Magnifier control.