You can use
this type of app to hide data such as a unique key in you jpg, just use a cgi to display the jpg in a img tag and have the cgi sign the jpg with a unique identifier, log it to a database -- and when you find the pictures in the wild see if they are marked.