updated to work with pifacecommon v4.0.0
fixed toggle mask