Automatically generate patterns that exploit compression in jpgs