minor fix to file name encoding
refactor photo