to do code with imge reply

to do code with imge reply
and modify some codes