Use matplotlib to save images
The old one breaks for the new scipy version; replaces image saving with matplotlib.
The old one breaks for the new scipy version; replaces image saving with matplotlib.
This will create a new commit in order to revert the existing changes.