Add clear previous png output dir logic.