Corrected exception handling to account for skipped images.
Merge pull request #5 from wil-langford/skipped-average-fix

Corrected exception handling to account for skipped images.