format selection for saving from camThread and basic error handling for file operations