Index: WAeUP_SRP/base/Widgets.py
===================================================================
--- WAeUP_SRP/base/Widgets.py	(revision 2342)
+++ WAeUP_SRP/base/Widgets.py	(revision 2344)
@@ -1387,5 +1387,5 @@
             do = 0
             err ='You are not a Student. PIN neither checked nor used.'
-            s_logger.info('%s tried to use scratch card %s' % (s_id,pin_str))
+            s_logger.info('%s tried to use scratch card %s' % (member_id,pin_str))
         elif len(b) > 1 and b.find('-') > -1:
             do = 0
@@ -1744,5 +1744,5 @@
             if not os.path.exists(base_path):
                 os.mkdir(base_path)
-            full_path = os.path.join(base_path, file_name)
+            full_path = os.path.join(base_path, filename)
             pict = open(full_path,"w")
             fileupload.seek(0)
@@ -1786,5 +1786,5 @@
     id_field = ""
     show_image = False
-    
+
     def getImageInfo(self, datastructure): ###(
         """Get the file info from the datastructure."""
Index: WAeUP_SRP/base/skins/waeup_layout/widget_passport_render.pt
===================================================================
--- WAeUP_SRP/base/skins/waeup_layout/widget_passport_render.pt	(revision 2342)
+++ WAeUP_SRP/base/skins/waeup_layout/widget_passport_render.pt	(revision 2344)
@@ -22,5 +22,5 @@
   </span>
   <tal:block condition="python: mode == 'edit'">
-    <metal:block use-macro="here/widget_file_render/macros/file_size_max_view" />
+    
     <metal:block define-macro="image_title_edit">
       <span tal:condition="python:0">
@@ -31,4 +31,5 @@
     <img tal:condition="python:not empty_file and not session_file"
          tal:replace="structure image_tag" />
+         
     <metal:block define-macro="image_edit">
       <metal:block use-macro="here/widget_file_render/macros/file_edit">
@@ -45,4 +46,6 @@
       </metal:block>
     </metal:block>
+  <metal:block use-macro="here/widget_file_render/macros/file_size_max_view" />
+  
   </tal:block>
 </tal:block>
