Thanks Ray. Have tried to do this on an insert page that requires the user to add a main image and the option to add 4 further sub images.
However, the validation is failing on the optional sub images even when the main image is ok.
Have attached the insert page