ChromaKeyer: fix masks handling