fix can't load image in Qt4.8.4

http://osc.matsukei.net/issues/401 fixes #401