Challenge: Speed up seam carving example