Use MorePredicates.transformingPredicate() to fetch PrimaryImages