Junk mail has never been a problem for me, as all of the junk I got was either filtered out by Gmail, or by Mail itself. However, ever since I set up my Gmail account using IMAP, the Gmail Spam folder appears in the sidebar in Mail. This wouldn't be a problem except for the fact that many of these messages have sexually explicit images attached that show up in the "all images" shortcut in the Finder.
Here is my question: Is there any way to configure either Mail or Gmail to either not download the junk mail or delete it immediately?