Update sorl/thumbnail/conf/__init__.py

Optimization code.