almost working watershed, but it still doesnt

added png write image function