image size and header type check