hotfix for file permissions checking
fixed up file/image testing
Merge branch 'master' into develop