We probably also need a image = np.ascontiguousarray(image) step?