HDR – from theory to practical implementation