Improved PNG transparency handling

Loading and saving a PNG without mutation resulted in loss of transparency.