Add dynamic weights

- weights are now calculated based on difference in luminance between
the iCAM and ward images
- the larger the difference in luminance at a pixel, the closer the weight
is to 0.5 for that pixel
- the smaller the difference in luminance at a pixel, the closer the weight
is to 1.0 for that pixel