Updated hdr.den() following Freuer Dennis suggestions