cast photo uri as string