I renewed my passport a little while ago and I noticed there was some useful advice in the booklet that accompanies the form I got from the Post Office. Head covering "for medical reasons" was mentioned.
This link might be useful too. https://www.gov.uk/photos-for-passports
All the very best, hope you have a great holiday.