add the extraFiles option for add some extra files to the manifest file. optimize the rule of geting image files from htmlcontent