def filter_images(images, criteria = "title"):
    """Filters the images based on if a property is set."""
    # There might be a oneliner that replaces this function but
    # I'm lazy so I just say: "Explicit is better then implicit."
    result = []
    for image in images:
        try:
            if len(image[criteria]) > 0:
                result.append(image)
        finally:
            pass
    return result