Improved image format selection in takeSnapshot()

- Version 4.3.10