CompressedImage: pass headers by value, rather than by reference