3D viewer: add PNG export funcionality

A button to export the current view as PNG image is added to the "Main" tab.
Merge branch '3dviewer-export'