In the process of making hdr rendering on seperate threads