HDR implementation basics. Does not work yet.