--- format.php.orig	2011-11-27 20:35:45.801112379 +0400
+++ format.php	2011-11-27 18:26:21.341121258 +0400
@@ -180,6 +179,8 @@
         // Backwards compatibility, deal with the old image tag.
         $filedata = $this->getpath($question, array('#', 'image_base64', '0', '#'), null, false);
         $filename = $this->getpath($question, array('#', 'image', '0', '#'), null, false);
+	// There is files in subfolders (1.x course files 'repo' allows that)
+        $filename = str_replace('/', '.', $filename);
         if ($filedata && $filename) {
             $data = new stdClass();
             $data->content = $filedata;
