Since [1] when the media dialog was rewritten, the illustrations thumbnails were not using the preset colors. [2] did partially implement the solution: the updated images with the right colors were not replaced in the DOM. This commit continues what [2] started and displays the illustration thumbnails with the preset colors. It also assigns a media type to all fetched images. [1]: https://github.com/odoo/odoo/commit/7fd0698cf765a79959566b51e33cb76bff83d344 [2]: https://github.com/odoo/odoo/commit/f2111cb37a572fe1ffd9b303c4abcbb7fe1d67cd task-3060679 closes odoo/odoo#118556 X-original-commit: 75cc46c4f784edb1fb7404956e1cfdf6fae6a83c Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>