add code we worked on yesterday, edits to createHDR, createToneMap and main