def is_image(filename):
    """
    Check if the file names shows it is an image
    :param filename: the file name
    :return: True - is .jpg/ .gif/ .png .jpeg
    """
    rtn = False
    try:
        file_ext = filename.rsplit('.', maxsplit=1)[1]
        if file_ext.lower() in ['jpg', 'gif', 'png', 'jpeg']:
            rtn = True
    except IndexError:
        pass
    return rtn