change output folder, move matting to Matting class