Reworked logic for horizontal carve to turn image then perform vertical carve