Viruses from a JPG

We had a security briefing yesterday telling us to be suspicious of e-mail attachments from unknown senders. (Duh) They claimed even opening a JPG or possibly a GIF could lead to being infected. I'm skeptical. Has anyone ever got a virus from a picture file? How about a PDF?