Static version of toQImageSilent()
Required for use in https://phabricator.kde.org/D17955
Differential Revision: https://phabricator.kde.org/D18446