add watermarking functionality