implement insert img to xheditor
fixed #10 and fixed #11