ChromaKeyer: compute Kfg