improve png optimize code, add file test for log files