unless ( -e $useFile and $needThumb && -e $checkThumb ) { warn "resizing $useFile ( and $checkThumb )"; my $resizeOK = $utils->resizeImg( $baseImg, $useFile, $needThumb ); } warn "done resizing in main app " ;