def _get_image_offsets(width, height, segments_x, segments_y):
    """
    Gets offsets for the segments
    :param width: map width
    :param height: map height
    :param segments_x: number of x segments
    :param segments_y: number of y segments
    :return: lists of x offsets, lists of y offsets
    """
    offsets_x = []
    offsets_y = []

    for i in range(segments_x):
        offsets_x.append((int(width / segments_x * i)))
    for i in range(segments_y):
        offsets_y.append((int(height / segments_y * i)))

    offsets_x.append(width)
    offsets_y.append(height)

    return offsets_x, offsets_y