if there are less images than needed, the existing ones are randomly copied