fixed mask in imgcompare
removed DEBUG def