update camera sample