This helps the test pass. I think there is a bug with pngjs where it's emitting end before it's actually done writing.