2 empty lines between functions. Would you also add a test for non-boolean input images?