my $cookie = $cgi->cookie(-NAME => '', -VALUE => '', -EXPIRES... ); print $cgi->header('image/jpeg', -cookie => $cookie);