Pyqt5 qimage example. QtCore import * from PyQt4.