Edit camera function