can export image via js in html