add multi-attempt cutoff for pillow errors
doc string
Merge pull request #99 from dimagi/multi-attempt-cutoff

prevent pillow errors from being retried excessively