CONTRIB-4140 :: Use theme functions for images to allow theme overrides

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