Improved performance of SeamCarve