AFAIK, you even don't need to define $c (if you're on a theme).
But yeah, mainio is correct. If the page attribute is a file type, then you have the image object already, and you can get the the relative url straight off of it.