Only open one png at a time to reduce memory usage.