refine code seamCarving time perf not good