read/write camera parameters