ADD: api for editor to uploadImage