Trying MM.refresh(); to update photo prile upload

Suggested by Juan Leyva at https://moodle.org/mod/forum/discuss.php?d=261757#p1134718