'pymaging (pymaging_png at least) uses lower case for the type.'

def check_kind(self, kind, transform=None, **kwargs):

    if (transform is None):
        transform = (lambda x: x.lower())
    return super(PymagingImage, self).check_kind(kind, transform=transform, **kwargs)
