It sounds like there may be an issue with your file associations for JPG files. Try resetting the file associations for image files by going to Settings > Apps > Default apps, and then selecting "Photos" as the default app for "Photos" and "Images". Alternatively, you can try reinstalling your image viewer software.