Fixing issue of photo_formats not being initialized (as a POC) as am not so sure about this