allow header image to be read from cms

you'll need to add `set -e` at the top somewhere otherwise it'll always pass if the last command passes.