header image code cleanup