full image decoding