Binary morphology operations with simple images

This applet offers the same possibilities than the 'Binary morphology' applet, plus the Hit-Miss operator and the Chessboard distance operator. But instead of using a predefined image, you can create your own image. Simply click and drag the mouse in the gridded pad to draw. 

Do exactly the same to define the structure element. For the Hit-Miss operator, 'X' means that the value of the image at this position won't be evaluated.