Fast construction of a QImage given numpy array data (either grayscale or tinted)