Error recovery in jpeg2000 image transmission