How do you show a .jpg (picture) file in class? No clue. But if you need a workable, highly inellegant solution, here it is:
Create a PowerPoint or Keynote blank slide with the .jpg inserted and then display it using either Keynote or VGA Expedition on the iPad and your external monitor.