Add tracing and better checking for photos physcial path