Fixed return image dimensions

Return tuple of None if image is not valid

I use ImageField for get image and other files.
If I get other files then Django return exception ```TypeError: 'NoneType' object has no attribute '__getitem__'```