        def get_thumbnail_url(self, obj):
            return obj.imagefile.thumb.url

        def get_file_url(self, obj):
            return obj.file.url

    return ThisClass

ImageSerializer = basefileserializer_factory( Image )