A Wavelet-Based Digital Watermarking Algorithm