Sounds to me like the jpeg had a piggyback on it that stuck something in your registry that keeps it coming back. Can you boot in safe mode and delete.
Change the world. Of one person. Today.
If your equation requires either a complex combination of variables to get the desired result OR you can't seem to get the result regardless of the variables....it ain't your variables, it's your constant.