add setter logic for mask alpha