... and assuming that you don't / can't add all image field names in your code, something like this should also work:
$allImages = array();
foreach ($fields->find("type=FieldtypeImage") as $f) {
foreach ($pages->find("$f.count>0") as $p) {
foreach ($p->$f as $i) $allImages[] = $i;
}
}





Find content
Male
