RBL,
In showimage.php around line 489 is where the section is that builds the customfields. At around line 503 you'll see...
Code:
Content visible to verified customers only.
Below that line try adding your "$myvarname = $field['value'];" command and let me know if that works.