School assignment: seam carving for content aware image resizing