This hack adds a button next to the one created by the File Attachment Hack
. If you click on it, a popup window will open instead of an iframe. The hack also includes a correct callback function that copies the [img] tag to the posting editor automatically.
Before adding this hack, make sure you have the File Attachment Hack installed. Plus, you need to turn on the "new Attachment Posting Control Panel" in the Admin Control Panel.