Adding key image

The upper half of the input image is mapped to the light points of the key
image, and the lower half is mapped to the dark points. This way features
of the key are visible on the scrambled output image.