Corrected a bug introduced when adding png support of opencv. Mask file was changed back to bmp as before (had been changed to png by mistake)