Apply combined shape mask correctly