only display thumbnail if the file is here

This is to avoid having a «thumbnail» text for big images.