made camera RAII