from pathlib import Path


def find_all_imgs_on(DIRECTORY, EXTENSIONS):
    """
        Returns a list with all full paths of especified extensions.
    """
    files = list()
    for e in EXTENSIONS:
        files.extend([str(path) for path in Path(DIRECTORY).rglob(e)])
    return files