def getFlipFlagsList(pathname):
    """Gets flags whether to flip an image or not. These are 0 or 1.

    Arguments:
        Path to Flipflahg file

    Returns:
        List containing flip flags
    """
    flipFlags = []
    file = open(pathname, 'r')
    for line in file:
        for digit in line:
            if digit.isdigit():
                flipFlags.append(digit)
    return flipFlags