Distortion-Optimal Transmission of Progressive Images over Channels with Random Bit Errors and Packet Erasures