Fixes the image path for header image.

Using path.basename to extract the file name of the image.
Without doing this, the image src will be /img/original/path/to/image,
which is not how it gets copied into the docs/img folder.