Bug fixes

- Avoid  Test properties to crash
- assert that the pre-computed rod in renderRoI is equal to the cached
image rod only if it is not an identity.
Bug fixes:

- crash could occur when closing the first main window but a second was
alive
- A writer will write frames with good names even when rendering due to
a viewer connected to it.