Made changes for correct PNG creation. Got rid of saturated_clip() and the use of the weight map in run_trim(), since we need neither. For Ticket #143.