improve generate perf image