mix camera function