add seamCarving code