Rename validation methods
Rename DynamicSearch to DynamicMask
Assume that a valid or invalid pixel is touched
Improves FloodFillSearch
Add more validations in generateMask method