convert base64 images to moodle file system