def is_img_file(file, **kwargs):
    
    """
    Checks if a filename is an image file according to its file ending.
    
    Parameters
    ----------
    
    **kwargs : optional arguments
        - file_types: list
            List of strings which correspond to file types that should be
            recognized as acceptable image formats. Default: 'czi'
    
    """
    
    file_types = kwargs.get('file_types', ['czi'])
    checks = []
    
    for ftype in file_types:
        if ftype in file:
            checks.append(True)
        else:
            checks.append(False)
            
    return any(checks)