implementation of the Seam Carving technique (SIGGRAPH 2006)