Fix the need to re-focus window after ctrl+c interrupt for the app to exit
Add lockable default dict class
Add a bit of debug log when images are saved to temp files
Lock images dict when writing, it is needed to avoid double saved images
Update test_formats: defaultdict -> LockableDefaultDict