Attempt 2, fix py3 png encoding