Compatibility fix for newer Django and ImageKit