Cleaned up blending code
Also made setIntensity and setIntensityRange work with multiple intensity sets loaded.
Closes #179.