modifications to hdr, and setupHDR, added new FramesToHSL, HDRComplete