FIX: Save pictures correctly if they are not normalised.

This pull request fixes an error occurring when trying to save not normalised images.