Page Type Defaults image in template

Permalink
Something is driving me crazy.
I have this code on some page types:

<img src="<?php  echo ($c->getAttribute('page_thumbnail')->getVersion()->getRelativePath());?>" width="430px">


It works fine on the actual pages, but when I go to edit the defaults for that page type, it ignores all the code that is after that line and I can't edit the defaults properly...

Anyone know a workaround?

GBNT