upload image files with widget js