On the role of the gas environment, electron-dose-rate, and sample on the image resolution in transmission electron microscopy