Hi, I'll require following pieces of information from you:
1. List of names of main companies which can be selected. If the firms being selected are different from main companies, then a mapping between firm name and main company name will be required.
2. A folder containing all the main company images names according to main company name. In case the image name is different, a mapping between main company name and image name will be required.
For my background, I've over 15 years of experience, and I develop web-apps exclusively in Yii2 for my long term client.