A new technique for detecting forged photographs will help newspapers and magazines check celebrity pictures that might have been doctored to make them more newsworthy, and prevent hackers from tampering with sensitive legal images including fingerprint records and medical scans used as evidence in court.