Enhanced mask detection - now with auto-invert if none is found
Authored by: kleinebre 2011-11-18
Parent: [r73]
Child: [r75]