rewritten radiance load is much faster

the old rad code, from radiance.c, was using getc in a loop
rewrite rad write