Adding support for -no-gui command-line option, which allows Qt5's image generation routines to be used on clusters without display servers.