A Minimalist Approach to HDR Image Compression with Applications to Low-Light Image Enhancement