A multipurpose digital watermarking algorithm of color image