def flat(*nums):
    """
    Build a tuple of ints from float or integer arguments.
    Useful because PIL crop and resize require integer points.
    """
    return tuple(int(round(n)) for n in nums)