[bugfix #912] option to invert mask filter

Add optional 3rd parameter to fltr[]=mask|<filename>|<invert> where if
<invert> is set to "1" then mask image will be color-negated before
applying mask