An image must be self contained to prevent privacy leaks. Your base64 encoded image contains this:
<style type="text/css">@import url(http://127.0.0.1:8000/VegaEditor/static/ModelePol/Desyrel.css)</style>
This won't work as it tries to access data outside the image file. You'd have to url or base64 encode the css file and embed it into the image as a data url just as you did with the image itself.
Once all of the data for the image is in the one file it should work.