You're essentially defining the mask twice. You can reuse the mask here to set image values to zero.