Merge pull request #1 from PolicyStat/issue_1

Use real exceptions
Merge pull request #2 from PolicyStat/issue_2

Handle pict tags that do not have image ids
Merge branch 'master' into issue_3