Updated detectWater to be mapable over an imageCollection in GEE