A Content-dependent Watermark for Safeguarding Image Attribution