Ensure images are saved in binary mode

Fixes the image loader on Windows, where the default buffer file coding is DOS line endings. We can locally set `coding-system-for-write` to keep Emacs from touching the buffer when the temporary file is saved.

(Supercedes jondeandres/erc-image.el#4)