Dither-modulation data hiding with distortion-compensation: exact performance analysis and an improved detector for JPEG attacks