adjust header image view content mode depending on size of placed image.