Tightened up blendImages code. Closes #120.