Seam carving programming assignment