1. Fix the wrong element for morphologyEx()
2. Remove debug use cvWaitKey()