def move_to_origin(ink):
    """
    Move ink so that the lower left corner
    of its bounding box is the origin afterwards.
    """
    #print('origin')
    min_x = min(ink[:, 0])
    min_y = min(ink[:, 1])
    return ink - [min_x, min_y, 0]