Serialize camera config and add write loader for it.