fix key argument in read_session_parameters
fix enable/disable png capture: remove temporary png when disabled, update start_static_capture