refactor QImageFormat
refactor QImageFormat

namedtuple did only recently get defaults; in order to support older python versions, but also have clean code, we define a class now.
hmeine/qimage2ndarray,hmeine/qimage2ndarray