Seam carving 1st version