How to Validate Rectangular Images in Django Using Python