Smart HDR technology