refacing setup.py and adding try/except block to allow INLINE_MEDIA_CUSTOM_SIZES override from project settings