AR 640-30 covers the requirements for taking a photograph. Based on my understanding Soldiers are required to wear all permanent awards, decorations, combat and special badges/tabs. Therefore I believe the answer would be “Yes” you are required to wear them for the Photo. Here is an extract of the regulation.
Extract of AR 640-30 paragraph 7a
(3) Wear basic branch insignia, all permanently authorized awards, decorations, combat and special skill badges andtabs. If affiliated, regimental insignia will be worn. The shoulder sleeve insignia (patch) and distinctive unit insignia(crests) will be worn and are the only exceptions from the permanent rule. (In many cases Soldiers are assigned toDOD agencies, Joint activities, and other federal agencies, with some exceptions, that are not authorized one or both of these insignia items).