A Forensic Tool for Investigating Image Forgeries