Warp image to square after extractng