Clean up imsave behavior and beef up docstring
Add references in docstrings
Properly handle all image types for PNG, beef up docs
Fix handling of temp file removal