modified upload photo to always save photos to predefined extension set
in applicationResources.properties