accommodated backend changes in image decoding code