Fix typo that broke PNG optimizations

This was hotfixed on production given that it broke all PNG
uploads.