Changed how Django detects if Pillow is installed & placed the PIL on th...

...e deprecation path.

This is meant to address #19934.