fix loss of embedded overlay data during compression