Problem/Motivation
In #3389447: Provide a trait to create file upload validators from settings we discovered that ImageWidget and CKEditor5ImageController both duplicate the same logic for creating file upload validators from field settings.
Steps to reproduce
Proposed resolution
Create an ImageValidatorSettingsTrait
to create file upload validators from field settings.