trim header image