further image header optimization