fix getting extension from photo
Merge pull request #20 from jonphipps/hotfix/photo_logo

fix getting extension from photo