Seam carving in Javascript for context aware dynamic image resizing.