Seam carving for Content-Aware Image Resizing