add a variable set the minimum number of component in automatic_images