first working upload image assistant for commonjs