Improve Dehaze for Raw files

Original thread for those that are interested