DevTools: make optimize_png_images.py platform-agnostic.

BUG=425468

Review URL: https://codereview.chromium.org/664373002

git-svn-id: svn://svn.chromium.org/blink/trunk@184078 bbb929c8-8fbe-4397-9dbb-9b2b20218538