my $img = Imager->open(file => $foo) or die Imager->errstr;