CONTRIB-4745 :: Images and media not correctly displayed on some pages

Signed-off-by: Joseph Rézeau <moodle@rezeau.org>