import glob


def get_images(path):
    """
    Checks the folder for images
    :param path: The folder in which we will check for images
    :return: An array of all images found
    """
    path = path
    images = glob.glob(path + "**/**/**/*.jpg", recursive=True)
    images.extend((glob.glob(path + "**/**/**/*.png", recursive=True)))
    return images