Hi, problem solved. The error of duplicate images was due to the plugin “woo sub-category thumb.” I have deactivated the plugin. Thank you all for your input.
In Products>Categories, I put the subcategories under the parent category. “Display Type” for parent category page is “Subcategories”.