In 644572819ab9a1525af6077dd20c63957eb9271c the mediaWidth which was previously useless has been changed to default to the media's own width. This causes problems when there is a small image in a large container, because when replacing it, it would still suggest a very small size. This commit makes the mediaWidth default to the container's width instead to fix those issues. closes odoo/odoo#48631 X-original-commit: 3d8b56b2c9c7486430f2e947fecfe07d7163a732 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>