Digital Image Forensics: Theory and Implementation