If i read this correctly the jpeg files are opening in a text form rather than a picture. It seems that you have the program file association incorrect. To fix it: Right click on a file, then click open with with, it should give you options of what program to open it with. Select "choose default program. A window will pop up, choose the appropriate program, make sure the tick box at the bottom is ticket then click ok.
This should now open all your pictures properly.