(Warning: This trick may not scale, but will work in this exact case.)
Use element 0 of the return from get_included_files(). That will be the original file that started the chain
inside example3.php:
$gif = get_included_files();
then you can do
<link rel="canonical" href="http://website.com/<?php echo basename($gif[0]); ?>">