File > Save for Web & Devices (cmd+shift+option+s)
On the right side of the screen, you’ll see something like this:

On the dialog that pops up, choose Saving Files

Then under Optimized Files, uncheck Put Images in Folder, or change it to something cooler like img.
