Fixed a memory leak due to image resizing during seam-removal