Changed the teacher report to use direct image links using $CFG->wwwroot.