Added morphology tests for image masks