Fixed the raw dehaze generator bugs and add timer