add a new function: check_exists.
Merge branch 'master' of github.com:titainium/PRPHOTO