update added new custom image type for header
update added conditional code for custom headers