added image eroding + image subtraction