Revert "Fix saving images with added transparency"

This reverts commit cc439099c1e8c81a929ea446caa6791d7d9b6bd6.