Fix imread from urls on some backends.

Some backends infer the image type from the extension. This fix just adds the extension to the temp filename.
Merge pull request #515 from tonysyu/fix/imread-url-bug

ENH: Fix imread from urls on some backends.