fix bug compressing signed images as JPEG 2000 Lossy