Text this: On the generation of high dynamic range images: theory and practice from a statistical perspective