Forken from https://bitbucket.org/wkornewald/django-mediagenerator