fixed image uplaod function on smart editor.