fixed Qt5 compat

see scikit-image#1316
for mpl versions < 1.4.0