change directory for photo to /tmp.