reduce image size, and reduce header size