+ fixed salt and pepper noise
+ added mask functionality
+ added border detection