Fix detection of monitors connected to secondary GPU.

EnumDisplayDevices is failing so we make detection of device name
optional.

Fixes #4752
Rename "JPEG quality" to "JPEG Image" to not duplicate "quality" string.

Fixes #4788