Updated extract foreground filter