changed directory photos are sourced from
moved permission checking code for a folder to unused.