try harder to avoid QImage.

Authored by rahn on Dec 5 2016, 9:17 PM.