correct killing line.
png optimizer: Move all iterations into a function.