removed gamma to be closer to JPEGHDR