Fix AttributeError: class Image has no attribute 'DEBUG'
Merge pull request #726 from cgohlke/patch-3

Fix AttributeError: class Image has no attribute 'DEBUG'