changed interface a little bit. createImageHeader