convert the input images but it seems corrupted for now