implement clone image process. need more debug.