support for saving to file-like object in imsave
Clean up test.
Merge pull request #1 from tonysyu/pr/613

Minor cleanups to test
Merge pull request #613 from adamw523/master

support for saving to file-like object in imsave