ImageIndex: fix when clone image's order is different from parent

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>