code of watermarking