Don't store intermediate copies of compressed image data unless it is current best.
Don't store intermediate copies of compressed image data unless it is current best.

Reduces peak memory usage significantly.

shssoichiro/oxipng,shssoichiro/oxipng,shssoichiro/oxipng