Add logic to control header images