Maximum-Likelihood Based Watermark Detection on Fingerprint Images