I only meant the last line, like this:

        image_content_types = {
            'PNG': 'image/png',
            'SVG': 'image/svg+xml; charset=utf-8',
         }