1)You need to have zero day RCE exploit for JPEG file .
2)You just need to have a good binder . google binder . put your jpeg and exe file together . binder will bind this jpeg and exe together and will produce exe file . just change icon of produced exe file with jpeg image file . and then hide extension.
in order to hid extension just rename produced exe and put long space . now it will look like a normal jpeg file , as and when you double click on this jpeg it will open image and execute exe.