Done! I also moved the structuring element creation to a more reasonable spot in the code. =)