from pathlib import Path


def get_image_paths(folders_list):
    """
    Get all images in a given folder
    :param data_path: The list of folders from which to scrape images
    :return: List of images in data_path
    """
    image_paths = []
    for data_path in folders_list:
        for ext in ('*.tif', '*.bmp', '*.png', '*.jpg'):
            for filename in Path(data_path).glob(ext):
                image_paths.append(str(filename))
    image_paths.sort()
    return image_paths